<?php

namespace app\controllers\device;

use app\common\base\CommonController;

class DeviceUpdateController extends CommonController
{
    public function actionQueryProduct()
    {
        $this->rules = [
            [['accessKey','accessKeySecret','iotInstanceId','productKey'], 'required'],
            [['accessKey','accessKeySecret','iotInstanceId','productKey'], 'string'],
        ];
        $inputs = $this->validate();
        $info = parent::callModuleService('device', 'DeviceUpdateService', 'queryProduct', $inputs['accessKey'], $inputs['accessKeySecret'],$inputs['productKey'], $inputs['iotInstanceId']);
        return [
            'message' => $info,
        ];
    }
}